home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VSMCHOIC.S < prev    next >
Text File  |  1993-03-26  |  978b  |  38 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Input choice, sample mode.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _vsm_choice
  11. _vsm_choice:
  12. ;    .cargs    #8,handle.w,choice.l
  13.  
  14. handle      =         8
  15. choice      =         10
  16.  
  17.           link        a6,#0
  18.  
  19. ;          VContrl    #30
  20.           move.w    handle(a6),-(sp)    ; contrl[6]
  21.           clr.l     -(sp)                ; contrl[5,4]
  22.           clr.l     -(sp)                ; contrl[3,2]
  23.           clr.w     -(sp)                ; contrl[1]
  24.           move.w    #30,-(sp)            ; contrl[0]
  25.  
  26.           subq.l    #4,sp                ;* -> ptsout
  27.           pea        choice(a6)            ;* -> intout
  28.           subq.l    #8,sp                ;* -> ptsin, intin
  29.           pea        16(sp)                ;* -> contrl
  30.  
  31.           move.l    sp,d1
  32.           jsr        vditrap
  33.           move.w    28(sp),d0            ;* Return status from contrl[4].
  34.           unlk        a6
  35.           rts
  36.  
  37.           end
  38.